package com.info.zhiduoduo.pay.sdk.zhaoshangbank.model.request.tradebulter.detail;

import com.google.common.collect.Lists;
import com.info.zhiduoduo.pay.formbean.zhaoshangtradebulter.DeleteSubLedgerFormBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UpdateSubLedgerInfo {
	private String bbknbr;//分行号
	private String accnbr;//账号
	private String dmanbr;//记账子单元编号
	private String dmanam;//记账子单元名称
	private String ovrctl;//额度控制标志 Y：允许透支 N：不允许透支
	private String bcktyp;//退票处理方式 Y:退回原记账子单元
	private String clstyp;//余额非零时是否可关闭 Y：可关闭，N：不可关闭

	public static List<UpdateSubLedgerInfo> ofList(UpdateSubLedgerInfo formBean) {
		List<UpdateSubLedgerInfo> list = Lists.newArrayList();
		UpdateSubLedgerInfo info = new UpdateSubLedgerInfo();
		BeanUtils.copyProperties(formBean, info);
		list.add(info);
		return list;
	}
}
